package Com.aop.demo;

import Com.aop.dao.UserService;
import Com.aop.pojo.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationcontext.xml")
public class text_aop_xml {
    @Resource(name="UserService")
    UserService UserService;
    @Test
    public  void fun01(){
        UserService.delete(null);
   }
}
